import json

filename = "favorite_number.json"
try:
    with open(filename) as file_object:
        favorite_number = json.load(file_object)
        print(f"I know your favorite number! It’s {favorite_number}.")
except FileNotFoundError:
    print("还没有存储你喜欢的数字呢，请先输入并存储哦。")